package com.simple.gateway.core;

/**
 * 项目: simple-gateway-core
 *
 * 功能描述: 通用常量
 *
 * @author: WuChengXing
 *
 * @create: 2023-08-15 09:10
 **/
public class SimpleGatewayCoreConstants {

    /**
     * 数据源连接字段设置
     */
    public static final String DB_NAME_FIELD = "dbName";
    public static final String DB_USERNAME_FIELD = "username";
    public static final String DB_PASSWORD_FIELD = "password";

    /**
     * 网关服务基础设置
     */
    public static final Integer DEFAULT_GATEWAY_SERVER_PORT = 9999;
    public static final String DEFAULT_GATEWAY_SERVER_HOST = "127.0.0.1";

    /**
     * 网关 Netty 服务线程数配置
     */
    public static final Integer DEFAULT_BOSS_N_THREADS = 1;
    public static final Integer DEFAULT_WORK_N_THREADS = 4;
}
